<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta
      name="viewport"
      content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"
    />
    <meta name="author" content="林镭特" />
    <title></title>
    <style>
      * {
        margin: 0;
        padding: 0;
      }
      h1 {
        text-align: center;
        background-color: gainsboro;
      }
      main {
        width: 180px;
        margin: 0 auto;
        overflow: hidden;
      }
      .content {
        /* display: flex; */
        margin-top: 10px;
        position: relative;
        width: 180px;
        height: 150px;
      }
      .move{
          position: absolute;
          left: 0;
          display: flex;
      }
    </style>
  </head>
  <body>
    <main>
      <h1>专辑推荐</h1>
      <div class="content">
        <div class="move">
          <img src="img/1_1.jpg" alt="" />
          <img src="img/1_2.jpg" alt="" />
        </div>
      </div>
      <div class="content">
        <div class="move">
          <img src="img/2_1.jpg" alt="" />
          <img src="img/2_2.jpg" alt="" />
        </div>
      </div>
      <div class="content">
        <div class="move">
          <img src="img/3_1.jpg" alt="" />
          <img src="img/3_2.jpg" alt="" />
        </div>
      </div>
    </main>
    <script src="jQuery.js"></script>
    <script>
          $('.content').hover(function() {
        $(this).find('.move').stop().animate({
          left: -180
        },400);
      },function () {
        $(this).find('.move').stop().animate({
          left: 0
        },400);
      });
    </script>
  </body>
</html>
